const Client = require('./client');
let   testNodeUrl= "https://rpc.data-testnet.kava.io"
let nodeUrl = "https://rpc.kava-rpc.com"
const main = async ()=> {
    let client = new Client(testNodeUrl);
    await client.getClient();
	console.log('------------------- getHeight -------------------');
	//await client.getBlockNumberSync();

    console.log('---------------- getblock ---------------------');
   //await client.getBlock(15956582)

    console.log('--------------- getTx -------------------');
    try{
        let ret =  await client.getTx('E29D7A8A3A1CEB3094E877438E651AB5D693CFBC12956C192C7687058E8ADCB4');
        console.log('ret: ', ret);
    }catch(e) {
        console.log('e: ',e);
    }
   
}
main();
